home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fritz: All Fritz
/
All Fritz.zip
/
All Fritz
/
FILES
/
PROGMISC
/
MODULTUB.LZH
/
PROCED5.MOD
< prev
next >
Wrap
Text File
|
1989-01-18
|
731b
|
51 lines
(* Chapter 5 - Program 5 *)
MODULE Proced5;
FROM InOut IMPORT WriteString, WriteLn;
PROCEDURE One;
BEGIN
WriteString("This is procedure One.");
WriteLn;
END One;
PROCEDURE Two;
BEGIN
One;
WriteString("This is procedure Two.");
WriteLn;
END Two;
PROCEDURE Three;
BEGIN
Two;
WriteString("This is procedure Three.");
WriteLn;
END Three;
BEGIN (* Main program *)
One;
WriteLn;
Two;
WriteLn;
Three;
WriteLn;
END Proced5.
(* Result of execution
This is procedure One.
This is procedure One.
This is procedure Two.
This is procedure One.
This is procedure Two.
This is procedure Three.
*)